home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.02 Feb 90 / Bit Mapper Source / BTMP1 / BitMapper.r < prev    next >
Encoding:
Text File  |  1989-11-18  |  4.0 KB  |  158 lines  |  [TEXT/MPS ]

  1. /* ======================================= *
  2.     file:    BitMapper.r
  3.     date:    11.17.89
  4.  * --------------------------------------- *
  5.     Resources for the BitMapper SuperPaint
  6.     plug-in menu command.
  7.  * --------------------------------------- *
  8.     Copyright © 1989, Michael Ogawa and
  9.     MacTutor — All Rights Reserved.
  10.  * ======================================= */
  11.  
  12. #include "BitMapperRsrc.h"
  13.  
  14.  
  15. data 'PiMI' (kOrigBaseID, purgeable)
  16. /*    Plug-in Module Information specifying
  17. version 1 interface. */
  18. /*    m_o 09.13.89 */
  19. {
  20.     $"00 01"
  21. };
  22.  
  23.  
  24. resource 'ALRT' (kOrigBaseID + kALRT_Err,
  25.     "errAlrt", purgeable)
  26. /*    Alert template for the error alert.  The
  27. window height and width are based on the
  28. actual items in the dialogs.  The top
  29. coordinate is arbitrary.  The left coordinate
  30. is calculated by: (512 - width) / 2.  The
  31. actual desktop position should be calculated
  32. at runtime depending on the actual desktop
  33. size/configuration. */
  34. /*    m_o 09.30.89 */
  35. {        /*148*/
  36.     {40, 0, 40+92+8, 0+208+8},
  37.     kOrigBaseID + kDITL_Err,
  38.     {    /* array: 4 elements */
  39.         OK, visible, sound1,    /* [1] */
  40.         OK, visible, sound1,    /* [2] */
  41.         OK, visible, sound1,    /* [3] */
  42.         OK, visible, sound1        /* [4] */
  43.     }
  44. };
  45.  
  46. resource 'DITL' (kOrigBaseID + kDITL_Err,
  47.     "errAlrt", purgeable)
  48. /*    Dialog item list for the error alert.
  49. The param text ^0 in the prompt text should
  50. be filled in with the error code or some
  51. other message at runtime. */
  52. /*    m_o 09.30.89 */
  53. {
  54.     {    /* array DITLarray: 2 elements */
  55.         /* [1] */
  56.         {72, 8, 92, 78}, Button
  57.             {enabled, "Darn!" },
  58.         /* [2] */
  59.         {8, 64, 56, 208}, StaticText
  60.             {disabled,
  61.             "Oops!  Something went "
  62.             "wrong.  Sorry about that.  "
  63.             "(^0)"
  64.         }
  65.     }
  66. };
  67.  
  68. resource 'actb' (kOrigBaseID + kactb_Err,
  69.     "errAlrt", purgeable)
  70. /*    This is a default color table for the
  71. error alert */
  72. /*    m_o 09.30.89 */
  73. {
  74.     0x0,
  75.     0,
  76.     {}    /* array ColorSpec: 0 elements */
  77. };
  78.  
  79.  
  80. data 'TEXT' (kOrigBaseID, "about", purgeable)
  81. /*    Provides information about BitMapper to
  82. the user from within SuperPaint’s About Box.
  83.     Utilizes the constants kCopyright,
  84. kVersionStr, and kAnnotate. */
  85. /*    m_o 09.30.89 */
  86. {
  87.     "  BitMapper takes ‘snapshots’ of your "
  88.     "active SuperPaint document window and "
  89.     "turns them into 'BTMP' resources "
  90.     "which it places on the clipboard.  "
  91.     "It also places a 'PICT' copy of the "
  92.     "selection on the clipboard so that "
  93.     "you can see what the 'BTMP' looks "
  94.     "like.\n"
  95.     "  The 'BTMP' resource type consists "
  96.     "of a BitMap data structure followed "
  97.     "by a bit image.  "
  98.     "The baseAddr field of the saved "
  99.     "resource is set to Nil.  "
  100.     "The bounds field is set to a "
  101.     "rectangle the size of the selection "
  102.     "rectangle with its top left corner "
  103.     "set to (0,0).  "
  104.     "RowBytes is the actual width of the "
  105.     "selection (in bytes), rounded up "
  106.     "to an even width if necessary.  "
  107.     "The actual bit image then follows.\n"
  108.     "  For details on using 'BTMP' "
  109.     "resources, see Mike Scanlin’s article "
  110.     "in MacTutor magazine.\n"
  111.     "  Please send comments to: Michael "
  112.     "Ogawa, 619-224-3058, 619-721-7000 "
  113.     "(Palomar Software), or AppleLink "
  114.     "“M.O”.\n\n"
  115.     "BitMapper by…\n"
  116.     "  Michael Ogawa\n"
  117.     "Special thanks to…\n"
  118.     "  Dana Gregory\n"
  119.     "  Linda McClennan\n"
  120.     "  Mike Scanlin\n\n"
  121.     "Copyright © 1989 Michael Ogawa — All "
  122.     "Rights Reserved.\n"
  123.     "May not be redistributed for "
  124.     "commercial purposes.  May be freely "
  125.     "distributed on electronic bulletin "
  126.     "boards provided no additional charges "
  127.     "above the board’s standard connect "
  128.     "charges are imposed.  May be freely "
  129.     "distributed by non-profit "
  130.     "organizations on disk provided that "
  131.     "any charges for the distribution disk "
  132.     "does not exceed actual disk, "
  133.     "labelling materials, reproduction, "
  134.     "and shipping charges incurred by the "
  135.     "organization.\n"
  136.     "This software is provided “as is”, "
  137.     "with no warranties, either express or "
  138.     "implied, being made regarding its "
  139.     "fitness for any particular purpose.\n"
  140.     "v1.00"
  141. };
  142.  
  143.  
  144. resource 'vers' (1, purgeable)
  145. /*    Finder “get info” resource providing
  146. version information about our plug-in menu
  147. command to the user. */
  148. /*    m_o 11.13.89 */
  149. {
  150.     0x01,
  151.     0x00,
  152.     release,
  153.     0x00,
  154.     verUs,
  155.     "1.00",
  156.     "1.00 (US), © 1989 Michael Ogawa"
  157. };
  158.